//api文件夹用于存放对后台请求的代码
import service from ".";//导入
import qs from 'qs'

const adminApi = {
    login(admin) {
        return service.post("/login",qs.stringify(admin));
    },
    top5Dept(){
        return service.get('/admin/info/top5Dept');
    },
    classNumber(){
        return service.get('/admin/info/classNumber');
    },
    loginInfo(){
        return service.get('/admin/info/loginInfo');
    },
    captcha(){
        return service.get('/captcha');
    }

};

export default adminApi;//导出